package org.esk.dablog.service;

import org.esk.dablog.model.Picture;
import org.esk.dablog.exceptions.BusinessException;

/**
 * This interface provides methods related to Picture entity
 * User: jc
 * Date: 30.11.2006
 * Time: 12:48:37
 * $Id:$
 */
public interface PictureManager {

    /**
     * returns Picture entity by its id
     * throws exception if no picture is found
     * @param id
     * @return
     * @throws org.esk.dablog.exceptions.BusinessException
     */
    Picture getPicture(long id) throws BusinessException;

    /**
     * saves or updates Picture instance
     * @param picture
     */
    void savePicture(Picture picture) throws BusinessException;

    /**
     * deletes the Picture
     * @param picture
     * @throws BusinessException
     */
    void deletePicture(Picture picture) throws BusinessException;

}
